package com.xiegang.internalcommon.util;

/**
 * @author xieGang
 * @description
 * @date 2023/3/5 17:07
 **/
public class RedisPrefixUtils {

    public static String verificationCodePrefix = "verification-code-";

    public static String tokenPrefix = "token-";

    public static String blackDeviceCodePrefix = "black-device-";


    public static String generateKeyByPassengerPhone(String phone,String identity) {
        return verificationCodePrefix+ identity+ "-" + phone;
    }

    public static String generateTokenKey(String passengerPhone, String identity, String tokenType) {
        return tokenPrefix + passengerPhone + "-" + identity + "-" + tokenType;
    }
}
